package com.link.base.base.urlinfo.service;


import com.link.base.base.urlinfo.model.UrlDutyLink;
import com.link.core.basic.service.BasicService;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 */
public interface UrlDutyLinkService extends BasicService<UrlDutyLink> {

    /**
     * 将传入url字符串拆分成单独字符串，将其中已关联url可访问设置设为Y
     * 将未关联url进行关联，将错误url进行提示
     *
     * @author cuizhiyong
     * @param urls 多个待关联url组成的字符串
     * @param dutyId 职责id
     * @date 2019/4/9 20:48
     */
    void batchAddUrl(List<String> urls, Long dutyId) throws Exception;

    void addUrlsToRoles(List<String> urls, List<Long> dutyIds) throws Exception;
}
